package com.elastic.documents;

/**
 * @description 单字段聚合结果实体类
 */
public class AggregationForOne {
    private String name;            //聚合字段数据
    private long docCount;          //聚合后的数据量
    private long docCountError;     //错误数量(无用)
    private long count;             //取子聚合数据量(无用)
    public AggregationForOne(){}
    public AggregationForOne(String name,long docCount,long docCountError,long count){
        this.name=name;
        this.docCount=docCount;
        this.docCountError=docCountError;
        this.count=count;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public long getDocCount() {
        return docCount;
    }

    public void setDocCount(long docCount) {
        this.docCount = docCount;
    }

    public long getDocCountError() {
        return docCountError;
    }

    public void setDocCountError(long docCountError) {
        this.docCountError = docCountError;
    }

    public long getCount() {
        return count;
    }

    public void setCount(long count) {
        this.count = count;
    }

    @Override
    public String toString() {
        return "AggregationForOne{" +
                "name='" + name + '\'' +
                ", docCount=" + docCount +
                ", docCountError=" + docCountError +
                ", count=" + count +
                '}';
    }

}

